import request from '@/utils/request';

export async function query() {
  return request('/api/users');
}

export async function queryCurrent() {
  return request('/gameUserInfo/currentUser');
}

export async function modifyUserInfo(params) {
  return request('/gameUserInfo/', {
    method: 'PATCH',
    body: params,
  });
}